package com.smart.campus.school.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.smart.campus.school.mapper.ExamRoomClassesMapper;
import com.smart.campus.school.domain.ExamRoomClasses;
import com.smart.campus.school.service.IExamRoomClassesService;
import com.smart.campus.common.core.text.Convert;

/**
 * 考场场次教室信息Service业务层处理
 *
 * @author Zhihe.Li
 * @date 2020-06-04
 */
@Service
public class ExamRoomClassesServiceImpl implements IExamRoomClassesService
{
    @Autowired
    private ExamRoomClassesMapper examRoomClassesMapper;

    /**
     * 查询考场场次教室信息
     *
     * @param id 考场场次教室信息ID
     * @return 考场场次教室信息
     */
    @Override
    public ExamRoomClasses selectExamRoomClassesById(Long id)
    {
        return examRoomClassesMapper.selectExamRoomClassesById(id);
    }

    /**
     * 查询考场场次教室信息列表
     *
     * @param examRoomClasses 考场场次教室信息
     * @return 考场场次教室信息
     */
    @Override
    public List<ExamRoomClasses> selectExamRoomClassesList(ExamRoomClasses examRoomClasses)
    {
        return examRoomClassesMapper.selectExamRoomClassesList(examRoomClasses);
    }

    /**
     * 新增考场场次教室信息
     *
     * @param examRoomClasses 考场场次教室信息
     * @return 结果
     */
    @Override
    public int insertExamRoomClasses(ExamRoomClasses examRoomClasses)
    {
        return examRoomClassesMapper.insertExamRoomClasses(examRoomClasses);
    }

    /**
     * 修改考场场次教室信息
     *
     * @param examRoomClasses 考场场次教室信息
     * @return 结果
     */
    @Override
    public int updateExamRoomClasses(ExamRoomClasses examRoomClasses)
    {
        return examRoomClassesMapper.updateExamRoomClasses(examRoomClasses);
    }

    /**
     * 删除考场场次教室信息对象
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteExamRoomClassesByIds(String ids)
    {
        return examRoomClassesMapper.deleteExamRoomClassesByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除考场场次教室信息信息
     *
     * @param id 考场场次教室信息ID
     * @return 结果
     */
    @Override
    public int deleteExamRoomClassesById(Long id)
    {
        return examRoomClassesMapper.deleteExamRoomClassesById(id);
    }
}
